package org.jeecg.modules.pipe.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 工艺图设备
 * @Author: jeecg-boot
 * @Date:   2024-06-04
 * @Version: V1.0
 */
@ApiModel(value="iot_dev_craft_device对象", description="工艺图设备")
@Data
@TableName("iot_dev_craft_device")
public class CraftDevice implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**工艺图*/
    @ApiModelProperty(value = "工艺图")
    private String craftId;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15)
    @ApiModelProperty(value = "设备类型")
    private String deviceType;
	/**设备ID*/
    @Excel(name = "设备", width = 15, dictTable = "iot_dev_device_info", dicText = "device_name", dicCode = "device_id")
    @Dict(dictTable = "iot_dev_device_info", dicText = "device_name", dicCode = "device_id")
    @ApiModelProperty(value = "设备ID")
    private String deviceId;
	/**设备可见*/
	@Excel(name = "设备可见", width = 15)
    @ApiModelProperty(value = "设备可见")
    private Integer craftShow;

    /**水平位置*/
    private String posx;

    /**垂直位置*/
    private String posy;
	/**删除*/
	@Excel(name = "删除", width = 15)
    @ApiModelProperty(value = "删除")
    @TableLogic
    private Integer delFlag;

    /**设备名称*/
    private transient String deviceName;
}
